<%--
  Created by IntelliJ IDEA.
  User: Lai
  Date: 2021/10/2/0002
  Time: 15:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>EL表达式使用细节</title>
</head>
<body>
    <%--获取四大域对象中的数据--%>
    <%
//        pageContext.setAttribute("username","zhangsan");
        request.setAttribute("username","zhangsan");
//        session.setAttribute("username","zhangsan");
//        application.setAttribute("username","zhangsan");
    %>
    ${username}<br>

    <%--获取JSP中其他八个隐式对象  获取虚拟目录的名称--%>
    <%=request.getContextPath()%><br>
    ${pageContext.request.contextPath}<br>
</body>
</html>
